<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./JS/vue.js"></script>
</head>
<body>
    <div id="app">
        <label for="agree">
            <input type="checkbox" id="agree" v-model="isAgree">同意协议
        </label>
        <h2>您的选择:{{isAgree}}</h2>
        <button :disabled="!isAgree">下一步</button>
        <!-- 多选框 -->
         <br>
            <input type="checkbox"  value="篮球" v-model="hobbies">篮球
            <input type="checkbox" value="足球" v-model="hobbies">足球
            <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球
            <input type="checkbox" value="羽毛球" v-model="hobbies">羽毛球
         <h2>您的爱好：{{hobbies}}</h2>
    </div>
    <script>
        const app = new Vue({
            el: '#app',
            data:{
                message: '你好',
                isAgree: false,
                hobbies:[]
            },
            methods:{
                
            }
        })
    </script>
</body>
</html>